<!doctype html>
<html>

<head>
    <title>微品致远传送门</title>
    <meta content="微品致远传送门" name="description">
    <meta content="微品致远传送门" name="keywords">
    <!-- inject:meta -->
    <meta content="IE=edge" http-equiv="X-UA-Compatible">
    <meta charset="utf-8">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Set render engine for 360 browser -->
    <meta content="webkit" name="renderer">
    <!-- No Baidu Siteapp-->
    <meta content="no-siteapp" http-equiv="Cache-Control"/>
    <link href="http://at.alicdn.com/t/font_p27hnfue2k18xgvi.css" rel="stylesheet" type="text/css">
    <link href="https://cdn.staticfile.org/twitter-bootstrap/5.1.1/css/bootstrap.min.css" rel="stylesheet"
          type="text/css">
    <link href="/mgn/static/css/main.css" rel="stylesheet" type="text/css"/>
    <!--js-->
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/5.1.1/js/bootstrap.bundle.min.js"></script>
</head>
<body>
<!--头部-->
<div class="header" style="height:110px;background:#ffffff">
    <div class="header-box clearfix" style="margin-left:30px">
        <a href="#"><img alt="" class="logo" src="/mgn/static/images/637727698783507431.png"></a>
        <div class="header-nav" style="margin-top:40px">
            <nav class="navbar navbar-expand-sm justify-content-center">
                <ul class="navbar-nav">
                    <li class="nav-item" data-name="index"><a
                            href="http://transdoor.vpclub.cn/api/gits/">微品Gitlab数据查询</a></li>
                    <li class="nav-item" data-name="user"><a href="http://transdoor.vpclub.cn/api/gits/userIndex">Gitlab用户查询</a>
                    </li>
                    <li class="nav-item" data-name="project"><a href="http://transdoor.vpclub.cn/api/gits/projectIndex">Gitlab项目查询</a>
                    </li>
                    <li class="nav-item" data-name="cal"><a href="http://transdoor.vpclub.cn/api/gits/calIndex">Gitlab项目计算</a>
                    </li>
                    <li class="nav-item" data-name="logout"><a href="#">退出</a></li>
                </ul>
            </nav>
        </div>
    </div>
</div>
<script type="text/javascript">
	$(function () {
		var name = '/' + location.pathname.split('/')[1];
		$('.header-nav').find('li[data-name="' + name + '"]').addClass('active');
	});



</script>
<!-- endinject -->

<!-- bodyer -->
<div class="bodyer">
    <div class="main-introduce main-module">
        <div class="widget widget-tabs" style="margin-top:70px;">
            <h3>git项目核算记录</h3><br/>
            <div class="container-fluid">
                <div class="row" id="errDiv" style="display:none">
                    <input id="errMsg" name="errMsg" type="hidden" value="{{errMsg}}">
                    <div class="col-sm-12">
                        <div class="alert alert-danger alert-dismissible fade show">
                            <button class="close" data-bs-dismiss="alert" type="button">&times;</button>
                            <strong>错误!</strong> 你应该认真阅读 <br/><a class="alert-link" href="#">{{errMsg}}</a>。
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-2"></div>
                    <div class="col-sm-8" style="padding: 2px 2px 2px 2px">
                        <form action="/api/gits/cal" id="gitSearchForm" method="get" target="_self">
                            <div class="input-group mb-4">
                                <div class="input-group-prepend">
                                    <span class="input-group-text">开始时间</span>
                                </div>
                                <input class="form-control" id="startTime" maxlength="8" name="startTime"
                                       style="width:90px" type="text" value=""/>
                                <div class="input-group-prepend" style="margin-left:15px">
                                    <span class="input-group-text">结束时间</span>
                                </div>
                                <input class="form-control" id="endTime" maxlength="8" name="endTime" style="width:90px"
                                       type="text" value=""/>
                                <div class="input-group-prepend" style="margin-left:15px">
                                    <span class="input-group-text">查询周期</span>
                                </div>
                                <select class="form-control" id="days" name="days">
                                    <option value="1">1</option>
                                    <option value="7">7</option>
                                    <option value="30">30</option>
                                    <option value="365">365</option>
                                </select>
                                <input class="form-control" name="perPage" type="hidden" value="100"/>
                                <button class="btn btn-success" type="submit">查询</button>
                                <button class="btn btn-warning" id="dingshirenwu-btn" style="margin-left:15px"
                                        type="button">定时任务验证
                                </button>
                            </div>
                        </form>
                    </div>
                    <div class="col-sm-2"></div>
                </div>
                <div class="row">
                    <div class="col-sm-12" style="height:550px;overflow-y:scroll;">
                        <table class="table table-striped table-bordered table-hover">
                            <thead>
                            <tr>
                                <th>项目</th>
                                <th>项目id</th>
                                <th>创建人</th>
                                <th>提交人</th>
                                <th>分支名称</th>
                                <th>提交总行数</th>
                                <th>添加代码行数</th>
                                <th>删除代码行数</th>
                                <th>提交次数</th>
                            </tr>
                            </thead>
                            <tbody>
                            % for page in pages['lists']:
                            <tr>
                                <td>{{page['name']}}</td>
                                <td>{{page['id']}}</td>
                                <td>{{page['creator_name']}}</td>
                                <td>{{page['committor']}}</td>
                                <td>{{page['branch_name']}}</td>
                                <td>{{page['commitNum']}}</td>
                                <td>{{page['additions']}}</td>
                                <td>{{page['deletions']}}</td>
                                <td>{{page['submitted']}}</td>
                            </tr>
                            % end
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-12">
                        <ul class="pagination pagination-sm" style="padding:5px 5px 5px 5px ">
                            <li class="page-item"><a class="page-link" href="#">Previous</a></li>
                            % for page in pages['pages']:
                            <li class="page-item" style="margin-left:5px"><a class="page-link" href="#">{{page}}</a>
                            </li>
                            % end
                            <li class="page-item" style="margin-left:5px"><a class="page-link" href="#">Next</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- inject:footer -->
    <!--底部-->
    <div class="footer">
        <div class="footer-inner">
            <div class="links">
                <div class="copyright">
                    Copyright © 2023 版权所有
                </div>
            </div>
        </div>
    </div>
</div>
<!-- endinject -->
<script src="/mgn/static/plugin/vpTrans.js"></script>
<script src="/mgn/static/plugin/gits.js"></script>
<style>.copyrights{text-indent:-9999px;height:0;line-height:0;font-size:0;overflow:hidden;}</style>
</body>
</html>